package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_findEntityByPrimaryKey implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_findEntityByPrimaryKey() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_3_9 = new TagInfo("c:get", //$NON-NLS-1$
            3, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_64 = new TagInfo("c:get", //$NON-NLS-1$
            3, 64,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_3_127 = new TagInfo("c:iterate", //$NON-NLS-1$
            3, 127,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_194 = new TagInfo("c:get", //$NON-NLS-1$
            3, 194,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($primaryKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_3_236 = new TagInfo("c:choose", //$NON-NLS-1$
            3, 236,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_3_246 = new TagInfo("c:when", //$NON-NLS-1$
            3, 246,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$primaryKey/@order=$pcolCount", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_291 = new TagInfo("c:get", //$NON-NLS-1$
            3, 291,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_3_352 = new TagInfo("c:otherwise", //$NON-NLS-1$
            3, 352,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_3_365 = new TagInfo("c:get", //$NON-NLS-1$
            3, 365,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_3_464 = new TagInfo("java:import", //$NON-NLS-1$
            3, 464,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_4_14 = new TagInfo("c:get", //$NON-NLS-1$
            4, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_4_77 = new TagInfo("c:iterate", //$NON-NLS-1$
            4, 77,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_144 = new TagInfo("c:get", //$NON-NLS-1$
            4, 144,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_9 = new TagInfo("c:get", //$NON-NLS-1$
            8, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_64 = new TagInfo("c:get", //$NON-NLS-1$
            8, 64,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_8_127 = new TagInfo("c:iterate", //$NON-NLS-1$
            8, 127,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_194 = new TagInfo("c:get", //$NON-NLS-1$
            8, 194,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($primaryKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_236 = new TagInfo("c:get", //$NON-NLS-1$
            8, 236,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_40 = new TagInfo("c:get", //$NON-NLS-1$
            10, 40,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_10_127 = new TagInfo("c:iterate", //$NON-NLS-1$
            10, 127,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_10_194 = new TagInfo("c:choose", //$NON-NLS-1$
            10, 194,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_10_204 = new TagInfo("c:when", //$NON-NLS-1$
            10, 204,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$primaryKey/@order=$pcolCount", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_249 = new TagInfo("c:get", //$NON-NLS-1$
            10, 249,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_10_310 = new TagInfo("c:otherwise", //$NON-NLS-1$
            10, 310,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_10_323 = new TagInfo("c:get", //$NON-NLS-1$
            10, 323,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_11_12 = new TagInfo("c:get", //$NON-NLS-1$
            11, 12,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_11_50 = new TagInfo("c:get", //$NON-NLS-1$
            11, 50,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_18_13 = new TagInfo("c:get", //$NON-NLS-1$
            18, 13,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_18_69 = new TagInfo("c:get", //$NON-NLS-1$
            18, 69,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_20_40 = new TagInfo("c:get", //$NON-NLS-1$
            20, 40,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            out.write("    @Transactional");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_9); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_9.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_9.setTagInfo(_td_c_get_3_9);
            _jettag_c_get_3_9.doStart(context, out);
            _jettag_c_get_3_9.doEnd();
            out.write(" find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_3_64 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_64); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_3_64.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_3_64.setTagInfo(_td_c_get_3_64);
            _jettag_c_get_3_64.doStart(context, out);
            _jettag_c_get_3_64.doEnd();
            out.write("ByPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_3_127 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_3_127); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_3_127.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_3_127.setTagInfo(_td_c_iterate_3_127);
            _jettag_c_iterate_3_127.doStart(context, out);
            while (_jettag_c_iterate_3_127.okToProcessBody()) {
                RuntimeTagElement _jettag_c_get_3_194 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_194); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_3_194.setRuntimeParent(_jettag_c_iterate_3_127);
                _jettag_c_get_3_194.setTagInfo(_td_c_get_3_194);
                _jettag_c_get_3_194.doStart(context, out);
                _jettag_c_get_3_194.doEnd();
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_choose_3_236 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_3_236); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_choose_3_236.setRuntimeParent(_jettag_c_iterate_3_127);
                _jettag_c_choose_3_236.setTagInfo(_td_c_choose_3_236);
                _jettag_c_choose_3_236.doStart(context, out);
                JET2Writer _jettag_c_choose_3_236_saved_out = out;
                while (_jettag_c_choose_3_236.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    RuntimeTagElement _jettag_c_when_3_246 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_3_246); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_when_3_246.setRuntimeParent(_jettag_c_choose_3_236);
                    _jettag_c_when_3_246.setTagInfo(_td_c_when_3_246);
                    _jettag_c_when_3_246.doStart(context, out);
                    JET2Writer _jettag_c_when_3_246_saved_out = out;
                    while (_jettag_c_when_3_246.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_3_291 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_291); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_3_291.setRuntimeParent(_jettag_c_when_3_246);
                        _jettag_c_get_3_291.setTagInfo(_td_c_get_3_291);
                        _jettag_c_get_3_291.doStart(context, out);
                        _jettag_c_get_3_291.doEnd();
                        _jettag_c_when_3_246.handleBodyContent(out);
                    }
                    out = _jettag_c_when_3_246_saved_out;
                    _jettag_c_when_3_246.doEnd();
                    RuntimeTagElement _jettag_c_otherwise_3_352 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_3_352); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_otherwise_3_352.setRuntimeParent(_jettag_c_choose_3_236);
                    _jettag_c_otherwise_3_352.setTagInfo(_td_c_otherwise_3_352);
                    _jettag_c_otherwise_3_352.doStart(context, out);
                    JET2Writer _jettag_c_otherwise_3_352_saved_out = out;
                    while (_jettag_c_otherwise_3_352.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_3_365 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_365); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_3_365.setRuntimeParent(_jettag_c_otherwise_3_352);
                        _jettag_c_get_3_365.setTagInfo(_td_c_get_3_365);
                        _jettag_c_get_3_365.doStart(context, out);
                        _jettag_c_get_3_365.doEnd();
                        out.write(",");  //$NON-NLS-1$        
                        _jettag_c_otherwise_3_352.handleBodyContent(out);
                    }
                    out = _jettag_c_otherwise_3_352_saved_out;
                    _jettag_c_otherwise_3_352.doEnd();
                    _jettag_c_choose_3_236.handleBodyContent(out);
                }
                out = _jettag_c_choose_3_236_saved_out;
                _jettag_c_choose_3_236.doEnd();
                _jettag_c_iterate_3_127.handleBodyContent(out);
            }
            _jettag_c_iterate_3_127.doEnd();
            out.write(") throws ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_3_464 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_3_464); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_3_464.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_java_import_3_464.setTagInfo(_td_java_import_3_464);
            _jettag_java_import_3_464.doStart(context, out);
            JET2Writer _jettag_java_import_3_464_saved_out = out;
            while (_jettag_java_import_3_464.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("org.springframework.dao.DataAccessException");  //$NON-NLS-1$        
                _jettag_java_import_3_464.handleBodyContent(out);
            }
            out = _jettag_java_import_3_464_saved_out;
            _jettag_java_import_3_464.doEnd();
            out.write("{");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\treturn find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_4_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_4_14.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_4_14.setTagInfo(_td_c_get_4_14);
            _jettag_c_get_4_14.doStart(context, out);
            _jettag_c_get_4_14.doEnd();
            out.write("ByPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_4_77 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_4_77); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_4_77.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_4_77.setTagInfo(_td_c_iterate_4_77);
            _jettag_c_iterate_4_77.doStart(context, out);
            while (_jettag_c_iterate_4_77.okToProcessBody()) {
                RuntimeTagElement _jettag_c_get_4_144 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_144); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_4_144.setRuntimeParent(_jettag_c_iterate_4_77);
                _jettag_c_get_4_144.setTagInfo(_td_c_get_4_144);
                _jettag_c_get_4_144.doStart(context, out);
                _jettag_c_get_4_144.doEnd();
                out.write(", ");  //$NON-NLS-1$        
                _jettag_c_iterate_4_77.handleBodyContent(out);
            }
            _jettag_c_iterate_4_77.doEnd();
            out.write(" -1, -1);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("    ");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("    @Transactional");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_8_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_9); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_8_9.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_8_9.setTagInfo(_td_c_get_8_9);
            _jettag_c_get_8_9.doStart(context, out);
            _jettag_c_get_8_9.doEnd();
            out.write(" find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_8_64 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_64); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_8_64.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_8_64.setTagInfo(_td_c_get_8_64);
            _jettag_c_get_8_64.doStart(context, out);
            _jettag_c_get_8_64.doEnd();
            out.write("ByPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_8_127 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_8_127); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_8_127.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_8_127.setTagInfo(_td_c_iterate_8_127);
            _jettag_c_iterate_8_127.doStart(context, out);
            while (_jettag_c_iterate_8_127.okToProcessBody()) {
                RuntimeTagElement _jettag_c_get_8_194 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_194); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_194.setRuntimeParent(_jettag_c_iterate_8_127);
                _jettag_c_get_8_194.setTagInfo(_td_c_get_8_194);
                _jettag_c_get_8_194.doStart(context, out);
                _jettag_c_get_8_194.doEnd();
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_8_236 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_236); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_8_236.setRuntimeParent(_jettag_c_iterate_8_127);
                _jettag_c_get_8_236.setTagInfo(_td_c_get_8_236);
                _jettag_c_get_8_236.doStart(context, out);
                _jettag_c_get_8_236.doEnd();
                out.write(", ");  //$NON-NLS-1$        
                _jettag_c_iterate_8_127.handleBodyContent(out);
            }
            _jettag_c_iterate_8_127.doEnd();
            out.write(" int startResult, int maxRows) throws DataAccessException{");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\ttry {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tQuery query = createNamedQuery(\"find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_10_40 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_40); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_10_40.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_10_40.setTagInfo(_td_c_get_10_40);
            _jettag_c_get_10_40.doStart(context, out);
            _jettag_c_get_10_40.doEnd();
            out.write("ByPrimaryKey\", startResult, maxRows, ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_10_127 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_10_127); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_10_127.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_10_127.setTagInfo(_td_c_iterate_10_127);
            _jettag_c_iterate_10_127.doStart(context, out);
            while (_jettag_c_iterate_10_127.okToProcessBody()) {
                RuntimeTagElement _jettag_c_choose_10_194 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_10_194); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_choose_10_194.setRuntimeParent(_jettag_c_iterate_10_127);
                _jettag_c_choose_10_194.setTagInfo(_td_c_choose_10_194);
                _jettag_c_choose_10_194.doStart(context, out);
                JET2Writer _jettag_c_choose_10_194_saved_out = out;
                while (_jettag_c_choose_10_194.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    RuntimeTagElement _jettag_c_when_10_204 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_10_204); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_when_10_204.setRuntimeParent(_jettag_c_choose_10_194);
                    _jettag_c_when_10_204.setTagInfo(_td_c_when_10_204);
                    _jettag_c_when_10_204.doStart(context, out);
                    JET2Writer _jettag_c_when_10_204_saved_out = out;
                    while (_jettag_c_when_10_204.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_10_249 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_249); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_10_249.setRuntimeParent(_jettag_c_when_10_204);
                        _jettag_c_get_10_249.setTagInfo(_td_c_get_10_249);
                        _jettag_c_get_10_249.doStart(context, out);
                        _jettag_c_get_10_249.doEnd();
                        _jettag_c_when_10_204.handleBodyContent(out);
                    }
                    out = _jettag_c_when_10_204_saved_out;
                    _jettag_c_when_10_204.doEnd();
                    RuntimeTagElement _jettag_c_otherwise_10_310 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_10_310); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_otherwise_10_310.setRuntimeParent(_jettag_c_choose_10_194);
                    _jettag_c_otherwise_10_310.setTagInfo(_td_c_otherwise_10_310);
                    _jettag_c_otherwise_10_310.doStart(context, out);
                    JET2Writer _jettag_c_otherwise_10_310_saved_out = out;
                    while (_jettag_c_otherwise_10_310.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_10_323 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_323); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_10_323.setRuntimeParent(_jettag_c_otherwise_10_310);
                        _jettag_c_get_10_323.setTagInfo(_td_c_get_10_323);
                        _jettag_c_get_10_323.doStart(context, out);
                        _jettag_c_get_10_323.doEnd();
                        out.write(",");  //$NON-NLS-1$        
                        _jettag_c_otherwise_10_310.handleBodyContent(out);
                    }
                    out = _jettag_c_otherwise_10_310_saved_out;
                    _jettag_c_otherwise_10_310.doEnd();
                    _jettag_c_choose_10_194.handleBodyContent(out);
                }
                out = _jettag_c_choose_10_194_saved_out;
                _jettag_c_choose_10_194.doEnd();
                _jettag_c_iterate_10_127.handleBodyContent(out);
            }
            _jettag_c_iterate_10_127.doEnd();
            out.write(");");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\treturn (");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_11_12 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_11_12); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_11_12.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_11_12.setTagInfo(_td_c_get_11_12);
            _jettag_c_get_11_12.doStart(context, out);
            _jettag_c_get_11_12.doEnd();
            out.write(".domain.");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_11_50 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_11_50); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_11_50.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_11_50.setTagInfo(_td_c_get_11_50);
            _jettag_c_get_11_50.doStart(context, out);
            _jettag_c_get_11_50.doEnd();
            out.write(") query.getSingleResult();");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t} catch (NoResultException nre) {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\treturn null;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            out.write("\t@Transactional");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tpublic Set<");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_18_13 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_18_13); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_18_13.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_18_13.setTagInfo(_td_c_get_18_13);
            _jettag_c_get_18_13.doStart(context, out);
            _jettag_c_get_18_13.doEnd();
            out.write("> find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_18_69 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_18_69); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_18_69.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_18_69.setTagInfo(_td_c_get_18_69);
            _jettag_c_get_18_69.doStart(context, out);
            _jettag_c_get_18_69.doEnd();
            out.write("sByIds(Set<Integer> ids) throws DataAccessException {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\ttry {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\tQuery query = createNamedQuery(\"find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_20_40 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_20_40); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_20_40.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_20_40.setTagInfo(_td_c_get_20_40);
            _jettag_c_get_20_40.doStart(context, out);
            _jettag_c_get_20_40.doEnd();
            out.write("sByIds\",-1,-1,ids);");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\treturn new HashSet(query.getResultList());");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t} catch (NoResultException nre) {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t\treturn null;");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t");  //$NON-NLS-1$        
    }
}
